﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Shoozla.ViewModel;
using Shoozla.DataModel;

namespace Shoozla.View
{
    /// <summary>
    /// Interaction logic for SummaryView.xaml
    /// </summary>
    public partial class ID3TagControl : System.Windows.Controls.UserControl
    {      
        public ID3TagControl() : base()
        {
            InitializeComponent();
            var viewmodel = new ID3TagEditorViewModel();
            DataContext = viewmodel;
        }

        public void SelectedSongChanged(Mp3File song)
        {
            if (song != null)
            {
                ((ID3TagEditorViewModel)DataContext).Song = song;
                App.CurrentEditingSong = song;
            }
        }      
    }
}
